import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import('../views/1index.vue')
  },
  {
    path: '/chanpin',
    component: () => import('../views/2chanpin.vue')
  },
  {
    path: '/quanrenyuan',
    component: () => import('../views/3quanrenyuan.vue')
  },
  {
    path: '/zoujin',
    component: () => import('../views/4zoujin.vue')
  },
  {
    path: '/huiyuan',
    component: () => import('../views/5huiyuan.vue')
  },
  {
    path: '/pinpai',
    component: () => import('../views/6pinpai.vue')
  },
  {
    path: '/lianxi',
    component: () => import('../views/7lianxi.vue')
  },
  {
    path: '/shouquan',
    component: () => import('../views/8shouquan.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
